package com.gupao.javavip.rpc.framework.client;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RPCClientBeanConfig {
    @Bean
    public ZKDiscovery zkDiscovery() {
        ZKDiscovery zkDiscovery = new ZKDiscovery();
        zkDiscovery.setForeachLoadBalanceStrategy(new ForeachLoadBalanceStrategy());
        return zkDiscovery;
    }
}
